package com.csweimei.rentmanagementtreasure.http.entity;

import com.csweimei.rentmanagementtreasure.utils.ValidateUtils;
import com.google.gson.annotations.SerializedName;

public class BrokerInfoBean extends BaseResult{
    @SerializedName("data")
    private DataDTO data;

    public DataDTO getData() {
        return data;
    }

    public void setData(DataDTO data) {
        this.data = data;
    }

    public static class DataDTO {
        @SerializedName("userid")
        private int userid;
        @SerializedName("name")
        private String name;
        @SerializedName("IsAuth")
        private int isAuth;
        @SerializedName("headImg")
        private String headImg;
        @SerializedName("sex")
        private String sex;
        @SerializedName("phone")
        private String phone;
        @SerializedName("addtime")
        private String addtime;

        public int getUserid() {
            return userid;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public int getIsAuth() {
            return isAuth;
        }

        public void setIsAuth(int isAuth) {
            this.isAuth = isAuth;
        }

        public String getHeadImg() {
            return headImg;
        }

        public void setHeadImg(String headImg) {
            this.headImg = headImg;
        }

        public String getSex() {
            return sex;
        }

        public void setSex(String sex) {
            this.sex = sex;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getAddtime() {
            if (addtime.contains("T")){
                return ValidateUtils.getTimeByType(addtime,ValidateUtils.TIME_YMD)+" 加入";
            }else {
                return addtime+" 加入";

            }
        }

        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }
    }
}
